/*
 * @Author: Broin
 * @Date: 2021-12-27 10:18:02
 * @LastEditTime: 2022-01-04 03:19:41
 * @LastEditors: your name
 * @Description: 
 * @FilePath: /ac_interface/src/utils/ssh.js
 * MADE BY BROIN
 */

//let SSH2Promise = require('ssh2-promise');
// let fs = require('fs');
// let proc = require('child_process');

// export default class SSH{
//     constructor(host, port=22, username, password){
//         this.ssh = null;
//         this.host = host;
//         this.port = port;
//         this.username = username;
//         this.password = password;
//     }


        


//     command(cmd) {
//         proc.exec('node ../../test/ssh2shell.js ' + this.host + ' ' + this.username + ' ' + this.password + ' ' + cmd);
//         let data = fs.readFileSync('../../test/cmd.txt');
//         return data.toString();
//     }
// }